package com.aaa.controller.front;

import com.aaa.entity.Goods;
import com.aaa.service.front.IIdexService;
import com.aaa.service.front.ZMRICategoryService;
import com.aaa.service.front.ZMRIGoodsService;
import com.aaa.service.front.ZMRISpecificationService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RequestMapping("/front")
@Controller
public class ShopDetailsController {
    @Resource
    private ZMRIGoodsService zmrGoodsService;


    /*
       商品明细表
     */
    @RequestMapping("/shop-details-variable")
    public String shopdetailsvariable(Model model,String goodsId){
        List<Goods> GoodsIdList = zmrGoodsService.findByGoodsId(goodsId);
        model.addAttribute("GoodsIdList",GoodsIdList);

        return "front/shop-details-variable";
    }

}
